<template>
  <div class="app-container">
    <el-row :gutter="10">
      <el-col>
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          >上传</el-button
        >
      </el-col>
    </el-row>
    <!-- 添加或修改岗位对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>
      <obs-pdf-upload v-model="form.icon" @input="getIconUrl" :videoBaseUrl='IMAGEURL'/>
    </el-dialog>
  </div>
</template>
<script>
import ObsPdfUpload from "@/views/components/UploadPdf";

export default {
  name: "PdfDemo",
  components: { ObsPdfUpload },
  data() {
    return {
      IMAGEURL:'',
      // 弹出层标题
      title: "视频上传",
      // 是否显示弹出层
      open: false,
      form:{
          icon:''
      }
    };
  },
created() {
    },
  methods: {
    handleAdd() {
      this.open = true;
    },
    cancel() {
      this.open = false;
    },
    submitForm() {
      console.log("提交附件上传");
    },
    getIconUrl(url)
      {
        this.form.icon = url;
      }
  },
};
</script>
<style scoped>
</style>
